import request from "../axios";

export default {
	// 添加部门
	addDepartment(params) {
		return request({
			method: "POST",
			url: '/department/addDepartment',
			data: params
		})
	},
	// 删除部门
	deleteDepartment(params) {
		return request({
			method: "POST",
			url: '/department/deleteDepartment',
			data: params
		})
	},
	// 修改部门
	updateDepartment(params) {
		return request({
			method: "POST",
			url: '/department/updateDepartment',
			data: params
		})
	},
	// 获取部门列表（树形结构）
	getDepartmentList(params) {
		return request({
			method: "POST",
			url: '/department/getDepartmentList',
			data: params
		})
	},
	// 获取部门列表（非树形结构）
	selectDepartments(params) {
		return request({
			method: "POST",
			url: '/department/selectDepartments',
			data: params
		})
	},
	// 获取部门信息
	getDepartment(params) {
		return request({
			method: "POST",
			url: '/department/getDepartment',
			data: params
		})
	},
	// 获取部门人员
	getEmployeeDepartmentList(params) {
		return request({
			method: "POST",
			url: '/employeeDepartment/getEmployeeDepartmentList',
			data: params
		})
	},
	// 添加部门人员
	addEmployeeDepartmentList(params) {
		return request({
			method: "POST",
			url: '/employeeDepartment/addEmployeeDepartmentList',
			data: params
		})
	},
	// 删除部门人员
	deleteEmployeeDepartmentList(params) {
		return request({
			method: "POST",
			url: '/employeeDepartment/deleteEmployeeDepartmentList',
			data: params
		})
	},
}